package config

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	Auth struct {
		AccessSecret string
		AccessExpire int64
	}
	Mysql struct {
		DataSource string
	}

	CacheRedis cache.CacheConf

	WsPost  int64
	OssType string
	Local   struct {
		Path string
	}
	Qiniu struct {
		Zone          string
		Bucket        string
		ImgPath       string
		Domain        string
		UseHttps      bool
		UseCdnDomains bool
		ImgStyle      string
		AccessKey     string
		SecretKey     string
	}

	IpPlace struct {
		AppKey string
		Sign   string
	}
}
